<template>
	<view class="content">


		<view style="width: 100%;margin-bottom: 20px; display: flex; background-color: white;
		padding: 20px;">
			<image src="/reading/static/noBook.gif" style="width: 80px; height: 80px;border-radius: 50%;"></image>

			<view style="align-self: center; margin-left: 10px;">
				<view style="font-size: 15px;">书友，您好～</view>
				<view style="margin-top: 10px; font-size: 12px; color: #a6a6a6;">{{title}}</view>
			</view>
		</view>

		<uni-list style="width: 100%; background-color: white; padding-left: 20px;padding-right: 20px;">

			
			<uni-list-item title="免责声明" showArrow to="/reading/pages/aboutUs/Disclaimers/index" clickable></uni-list-item>


			<!-- <uni-list-item title="清除缓存" rightText="阅读卡顿请清除缓存" clickable @click="clearInfo"></uni-list-item> -->


		</uni-list>


		<view style="width: 100%; display: flex;justify-content: center; position: absolute;bottom: 0;
		color: #a6a6a6; font-size: 14px;">
			<text style="margin-bottom: 50px;">当前版本：v1.0.0</text>
		</view>


		<moveView tabTitle='我的'></moveView>
	</view>
</template>

<script>
	import moveView from '/reading/components/moveView.vue'
	// let videoAd = null
	export default {
components:{
			moveView
		},

		data() {
			return {
				version: "V1.0.0",
				loading: false,

				list: [
					"永远相信自己，你一定能做到！",
					"坚持不懈，成功必将属于你！",
					"无论遇到什么困难，都要勇敢面对！",
					"坚强的内心才是最好的武器！",
					"用心去做每一件事，一定会有所收获！",
					"相信自己的能力，你一定能超越自己！",
					"每一次努力都是值得的，加油！",
					"不要轻言放弃，坚持下去就会成功！",
					"做最好的自己，别忘了为自己鼓掌！",
					"拥有信心和勇气，你一定能实现梦想！",
					"风雨过后一定会见彩虹，加油！",
					"坚持就是胜利，不要放弃！",
					"你是最棒的，相信自己！",
					"努力奋斗，成功必将属于你！",
					"每一次挑战都是成长的机会，加油！",
					"坚定的信念会让你走得更远！",
					"勇敢追求梦想，不要停止前进！",
					"永远保持热情和坚持，你一定会成功！",
					"你是最棒的，加油！",
					"无论路途多么坎坷，只要坚持走下去，成功就在前方！"
				],
				title: ""
			}
		},
		onLoad() {


		},
		onShow() {

			this.getTitle();

		},
		methods: {
			clearInfo() {


			},
			getTitle() {
				var index = Math.floor(Math.random() * 20);
				console.log(index)
				this.title = this.list[index]
			}
		}
	}
	Date.prototype.format = function(fmt) {
		var o = {
			"M+": this.getMonth() + 1, //月份
			"d+": this.getDate(), //日
			"h+": this.getHours(), //小时
			"m+": this.getMinutes(), //分
			"s+": this.getSeconds(), //秒
			"q+": Math.floor((this.getMonth() + 3) / 3), //季度
			"S": this.getMilliseconds() //毫秒
		};
		if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
		for (var k in o)
			if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((
				"00" + o[k]).substr(("" + o[k]).length)));
		return fmt;
	}
</script>

<style lang="scss">
	.ad-content-page {
		flex: 1
	}

	.content {
		display: flex;
		flex-direction: column;

		height: 100vh;
		background-color: #efefef;

	}

	.link {
		align-self: center;
	}
</style>